{template header}

<style>

.fabu{position:relative;}
.fabu ul{display:none;text-align:center;background:#fff;border:1px solid #ddd;width:60px;position: absolute;right:0;top:20px;}
.fabu ul li{padding:3px 0;font-size:12px;border-bottom:1px dotted #ddd;}

</style>

<script>
function postMenu(){
	$(".fabu ul").slideToggle(300);
}
</script>

<div class="midder">

<h1>{$strGroup[groupname]}</h1>

<div class="qi_c_c">
<div class="qi_c_cleft">
<div class="infobox">
<div class="ex1"><span></span></div>
<div class="bd"><img align="left" alt="{$strGroup[groupname]}" src="{$strGroup[groupicon]}" class="pil groupicon" valign="top" />
<p>创建于{php echo date('Y-m-d',$strGroup[addtime])}&nbsp; &nbsp; {$strGroup[role_leader]}：<a href="index.php?app=user&ac=space&userid={$strLeader[userid]}">{$strLeader[username]}</a><br></p>
{$strGroup[groupdesc]}
<div class="clearfix" style="margin-top: 10px;">

<!--<span class="plr">
<div class="rec-sec">
<span class="rec" id="G-35417"><a href="#" name="rbtn-G-35417" class=" j a_show_login a_rec_btn" >推荐</a></span>
</div>
</span>-->

<!--{if $isGroupUser > 0 && $TS_USER[user][userid] != $strGroup[userid]}-->
<span class="fleft mr5 color-gray">我是这个小组的{$strGroup[role_user]} <a title="退出小组" class="j a_confirm_link" href="javascript:void(0);" onclick="exitGroup('{$strGroup[groupid]}');" style="margin-left: 6px;">&gt;退出小组</a></span>
<!--{elseif $isGroupUser > 0 && $TS_USER[user][userid] == $strGroup[userid]}-->
<span class="fleft mr5 color-gray">我是小组{$strGroup[role_leader]}</span>
<!--{else}-->
<span class="fright mr5 color-gray"><a rel="nofollow" class="j a_show_login bn-std1" href="javascript:void(0);" onclick="joinGroup('{$strGroup[groupid]}');"><span>加入小组</span></a></span>
<!--{/if}-->


</div>
</div>
<div class="ex2"><span></span></div>
</div>

	<div class="box">

	<div class="box_content">

<h2 style="margin-top: 10px;" class="fabu">
<a class="rr bn-post" href="javascript:void(0);" onclick="postMenu();"><span>发布</span></a>
<ul>
<li><a href="javascript:void('0');" onclick="newTopic('{$strGroup[groupid]}');">帖子</a></li>

</ul>


最近小组话题  · · · · · ·</h2>

<!--帖子分类-->
<div class="topictype">
<ul>
<li <!--{if $typeid=="0"}-->class="on"<!--{/if}-->><a href="{$TS_URL[group]}{$strGroup[groupid]}{$TS_URL[suffix]}"><span>全部</span></a></li>
<!--{loop $arrTopicType $key $item}-->
<li <!--{if $typeid==$item[typeid]}-->class="on"<!--{/if}-->><a href="index.php?app=group&ac=group&groupid={$strGroup[groupid]}&typeid={$item[typeid]}"><span>{$item[typename]}</span></a></li>
<!--{/loop}-->
</ul>
</div>
	
	<div class="tb_list">
	<table width="100%">
	<tr class="trbg"><td>话题</td><td>作者</td><td nowrap="nowrap">查看/回复</td><td align="right">最后回应</td></tr>
	<!--{loop $arrGroupContent $key $item}-->
	<tr>
	<td>{php doAction('group_list_avatar',$item)}<!--{if $item[istop]=='1'}--><img src="{$TS_APP[tpl][skin]}{$skin}/headtopic_1.gif" title="[置顶]" alt="[置顶]" /> <!--{elseif $item[addtime]>strtotime(date('Y-m-d 00:00:00'))}--><img src="{$TS_APP[tpl][skin]}{$skin}/topic_new.gif" align="absmiddle"  title="[新帖]" alt="[新帖]" /><!--{else}--><img src="{$TS_APP[tpl][skin]}{$skin}/topic.gif" align="absmiddle"  title="[帖子]" alt="[帖子]" /><!--{/if}-->  <!--{if $item[isphoto]=='1'}--><img src="{$TS_APP[tpl][skin]}{$skin}/image_s.gif" title="[图片]" alt="[图片]" align="absmiddle" /><!--{/if}-->  <!--{if $item[isattach] == '1'}--><img src="{$TS_APP[tpl][skin]}{$skin}/attach.gif" title="[附件]" alt="[附件]" /><!--{/if}--> <!--{if $item[typeid] !='0'}--><a href="index.php?app=group&ac=group&groupid={$item[groupid]}&typeid={$item[typeid]}">[{$item[typename]}]</a><!--{/if}--> <a href="{$TS_URL[topic]}{$item[topicid]}{$TS_URL[suffix]}">{$item[title]}</a></td>
	<td><a href="index.php?app=user&ac=space&userid={$item[userid]}">{$item[username]}</a></td>
	<td>{$item[count_view]}/{$item[count_comment]}</td>
	<td  align="right" style="width:70px;color:#999999;font-size:10px;">{php echo date('m-d H:i',$item[uptime])}</td>
	</tr>
	<!--{/loop}-->
	</table>
	</div>
	
	<div class="pl2 rr">&gt; <a href="{$TS_URL[group_topic]}{$strGroup[groupid]}{$TS_URL[suffix]}">更多小组讨论</a></div>
	
	</div>
	</div>

</div>


<div class="qi_c_cright">
<div>
<h2>最近加入 · · · · · ·</h2>

<!--{loop $arrGroupUser $key $item}-->
<dl class="obu">
<dt><a class="nbg" ><a href="index.php?app=user&ac=space&userid={$item[userid]}"><img alt="{$item[username]}" class="m_sub_img" src="{$item[face]}" /></a></dt>
<dd>{$item[username]}<br><span class="pl">({$item[city][cityname]})</span></dd></dl>
<!--{/loop}-->
<br clear="all">

<!--{if $TS_USER[user][userid] == $strGroup[userid]}-->
<p class="pl2">&gt; <a href="{$TS_URL[group_user]}{$strGroup[groupid]}{$TS_URL[suffix]}">成员管理 ({$strGroup[count_user]})</a></p>

<p class="pl2">&gt; <a href="index.php?app=group&ac=edit_group&groupid={$strGroup[groupid]}&ts=base">修改小组设置</a></p>
<p class="pl2">&gt; <a href="index.php?app=group&ac=group_recovery&groupid={$strGroup[groupid]}">回收站({$strGroup[recoverynum]})</a></p>

<!--{else}-->
<p class="pl2">&gt; <a href="{$TS_URL[group_user]}{$strGroup[groupid]}{$TS_URL[suffix]}">浏览所有成员 ({$strGroup[count_user]})</a></p>
<!--{/if}-->

<br>
<div class="clear"></div>
</div>

<p class="pl">本页永久链接: <a href="{$TS_URL[group]}{$strGroup[groupid]}{$TS_URL[suffix]}">{$TS_SITE[base][site_url]}{$TS_URL[group]}{$strGroup[groupid]}{$TS_URL[suffix]}</a></p>

<p class="pl">订阅小组讨论: <br /><span class="feed"><a href="{$TS_URL[rss]}{$strGroup[groupid]}{$TS_URL[suffix]}">feed: rss 2.0</a></span></p>

</div>
</div>
</div>

{template footer}